#pragma once
#include <stdint.h>

class VideoOption;
class FfmpegThreadProxy;
class VideoThreadProxy;
class HiVideo2Image {
  public:
    HiVideo2Image();
    ~HiVideo2Image();

  public:
    bool start(const char *rtsp_url, uint16_t port, uint32_t width,
               uint32_t height, long image_folder);
    void stop();

  private:
    VideoOption *video_option;
    FfmpegThreadProxy *ffmpeg_thread;
    VideoThreadProxy *video_thread;
};